/*
 * @Description: mutations 业务层数据提交
 * @Author: zhihong deng
 * @Date: 2021-08-22 19:38:05
 * @LastEditors: zhihong deng
 * @LastEditTime: 2021-10-11 22:56:32
 */
import storage from "../utils/storage";

export default {
  // 保存用户信息
  saveUserInfo(state,userInfo){
    state.userInfo = userInfo;
    storage.setItem('userInfo',userInfo)
  },
  // 保存用户信息
  saveUserMenu(state,menuList){
    state.menuList = menuList;
    storage.setItem('menuList',menuList)
  },
  // 保存用户信息
  saveUserAction(state,actionList){
    state.actionList = actionList;
    storage.setItem('actionList',actionList)
  },
  // 保存用户信息
  saveNoticeCount(state,noticeCount){
    state.noticeCount = noticeCount;
    storage.setItem('noticeCount',noticeCount)
  },
}